;(function() {
    // 姝ラ1锛氬垱寤篹charts瀹炰緥
    let myChart = echarts.init(document.querySelector('.pc-l2'))
  
    // 姝ラ2锛氬畾涔夐厤缃紙鎸囧畾鍥捐〃鐨勯厤缃」鍜屾暟鎹級
    let option = {
        grid: {
            top: 15,
            left: 40,
            right: 5,
            bottom: 40,
        },
        xAxis: [{
            type: 'category',
            data: ["安徽", "安徽", "安徽", "安徽", "安徽"],
            axisLine: {
                lineStyle: {
                    color: 'rgba(147, 160, 173, 1)'
                }
            },
            axisLabel: {
                margin: 10,
                color: 'rgba(147, 160, 173, 1)',
                textStyle: {
                    fontSize: 14
                },
            },
            axisTick: {
                show: false
            }
        }],
        yAxis: [{
            axisLabel: {
                color: 'rgba(147, 160, 173, 1)'
            },
            axisTick: {
                show: false
            },
            axisLine: {
                show: false,
            },
            splitLine: {
                show: false
            },
            max: 3500
        }],
        series: [{
            type: 'bar',
            data: [1050, 2080, 1060, 3080, 1660],
            barWidth: '10px',
            itemStyle: {
                normal: {
                    color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{
                        offset: 0,
                        color: '#f3b043' 
                    }, {
                        offset: 1,
                        color: '#e587db' 
                    }], false),
                    // shadowColor: 'rgba(0,160,221,1)',
                    // shadowBlur: 4,
                    barBorderRadius: 1,
                    barBorderRadius: 15,
                }
            }
        },
        {
            barGap: '-125%',
            type: 'bar',
            data: [3500, 3500, 3500, 3500, 3500],
            barWidth: '15px',
            itemStyle: {
                normal: {
                    borderColor: '#504778',
                    borderWidth: 1,
                    barBorderRadius: 10,
                    color: 'rgba(255,255,255,0)'
                }
            },
    
        },]
    };
  
    // 姝ラ3锛氫娇鐢ㄥ垰鎸囧畾鐨勯厤缃」鍜屾暟鎹樉绀哄浘琛�
    myChart.setOption(option)
  
    // 姝ラ4锛氱洃鎺х綉椤佃鍙�
    window.addEventListener('resize', () => {
        myChart.resize()
    })
  })()